chore(db): migration 0014 unique conversation title + LLM provider seed data#154
Merged
Conversation
…ed data - migration 0014: chat_conversation 表新增 uk_conversation_user_dataset_title 唯一约束(user_id, dataset_id, title),升级前自动清理重复行 - seed_llm_providers.sql: 从 RAGFlow 导出的 45 个厂商、868 条模型能力记录 - add_aliyun_system_presets.sql: 阿里云 DashScope 远程开发预设 - 同步 docs/api/schemas/mysql.md 与 scripts/db/init.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
Migration 0014 —
chat_conversation表新增唯一约束uk_conversation_user_dataset_title (user_id, dataset_id, title)LLM provider seed data
seed_llm_providers.sql:从 RAGFlow 导出,45 个厂商、868 条模型能力记录add_aliyun_system_presets.sql:阿里云 DashScope 远程开发预设(api_key 已 AES-256-GCM 加密)文档同步
docs/api/schemas/mysql.md:补充新增唯一索引说明scripts/db/init.sql:schema 完整快照同步至 migration 0013测试验证
alembic upgrade head在干净数据库执行通过alembic downgrade -1回滚验证